package es.yell.wsdl.ContractSrv;

public class ContractSrvPortTypeProxy implements es.yell.wsdl.ContractSrv.ContractSrvPortType {
  private String _endpoint = null;
  private es.yell.wsdl.ContractSrv.ContractSrvPortType contractSrvPortType = null;
  
  public ContractSrvPortTypeProxy() {
    _initContractSrvPortTypeProxy();
  }
  
  public ContractSrvPortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initContractSrvPortTypeProxy();
  }
  
  private void _initContractSrvPortTypeProxy() {
    try {
      contractSrvPortType = (new es.yell.wsdl.ContractSrv.ContractSrvLocator()).getContractSrvPort();
      if (contractSrvPortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)contractSrvPortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)contractSrvPortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (contractSrvPortType != null)
      ((javax.xml.rpc.Stub)contractSrvPortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public es.yell.wsdl.ContractSrv.ContractSrvPortType getContractSrvPortType() {
    if (contractSrvPortType == null)
      _initContractSrvPortTypeProxy();
    return contractSrvPortType;
  }
  
  public es.yell.schema.Contract.Contract.ContractType getContractInfo(java.lang.String co_contrato) throws java.rmi.RemoteException, es.yell.wsdl.ContractSrv.WSExceptionType{
    if (contractSrvPortType == null)
      _initContractSrvPortTypeProxy();
    return contractSrvPortType.getContractInfo(co_contrato);
  }
  
  public es.yell.schema.Contract.Contract.AdsRefType[] getAdsList(java.lang.String co_contrato) throws java.rmi.RemoteException, es.yell.wsdl.ContractSrv.WSExceptionType{
    if (contractSrvPortType == null)
      _initContractSrvPortTypeProxy();
    return contractSrvPortType.getAdsList(co_contrato);
  }
  
  public es.yell.schema.Contract.Contract.AdsType getAdsInfo(es.yell.schema.Contract.Contract.AdsRefType adsRef) throws java.rmi.RemoteException, es.yell.wsdl.ContractSrv.WSExceptionType{
    if (contractSrvPortType == null)
      _initContractSrvPortTypeProxy();
    return contractSrvPortType.getAdsInfo(adsRef);
  }
  
  
}